﻿using System;
using System.Configuration;
using System.Reflection;

namespace Hotpot.Configuration
{
    public class HotpotAssemblyConfigurationElement : ConfigurationElement
    {
        public HotpotAssemblyConfigurationElement() : base() { }

        public HotpotAssemblyConfigurationElement(string elementName)
            : base()
        {
            Assembly = elementName;
        }

        [ConfigurationProperty("assembly", IsRequired = true, IsKey = true)]
        public string Assembly
        {
            get
            {
                return (string)this["assembly"];
            }
            set
            {
                this["assembly"] = value;
            }
        }
    }
}
